-- GENERATED SPELL FOR [Thief Catcher Thunderbrew] --


function spell0_14367(pUnit, Event) --@Hooked Net,n/a--
pUnit:FullCastSpellOnTarget(14030,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_14367', 6500, 1)
end

function spell1_14367(pUnit, Event) --@Sunder Armor,n/a--
pUnit:FullCastSpellOnTarget(15572,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_14367', 30262, 1)
end

function Sorts_14367(pUnit, Event)
local choix_sorts_14367 = math.random(0, 1)
if choix_sorts_14367 == 0 then
pUnit:RegisterEvent('spell0_14367', 1, 1)
end
if choix_sorts_14367 == 1 then
pUnit:RegisterEvent('spell1_14367', 1, 1)
end
end

function mob14367_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_14367', math.random(1500, 3000), 1)
end

function mob14367_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob14367_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob14367_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(14367, 1, 'mob14367_Action')
RegisterUnitEvent(14367, 2, 'mob14367_Leave')
RegisterUnitEvent(14367, 3, 'mob14367_Kill')
RegisterUnitEvent(14367, 4, 'mob14367_Die')
